c# convert bool to string

60

how to convert string to bool c# -

 string sample = "True";
 bool myBool = bool.Parse(sample);

 ///or

 bool myBool = Convert.ToBoolean(sample);

Comments

Submit
0 Comments